<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>BLOBkit Samples</title>
		<script type="text/javascript" src='../tvb-min.js'></script>
	</head>
	<body bgcolor="#ff0000">
		<script type="text/javascript">
			TVB.widget.titleBar.setTitle("Video Player - Initializing...");
			TVB.widget.titleBar.setIcon("http://www.blobforge.com/static/lib/resources/ibk.png");
			TVB.widget.titleBar.render();
		</script>

		<script type="text/javascript">
			// count the number of DVB channels available
			var num = TVB.tuner.countDvbChannels();
			TVB.widget.colorButtonsBar('', '', '', num + " channels");
			
			if (num > 0) {
				var channels = TVB.tuner.getDvbChannelsList();

				// Start playback of the first channel in your channel list
				TVB.player.init({ uri: channels[0].uri});

				// Put the name of current channel in the title bar
				TVB.widget.titleBar.setTitle("Video Player - " + channels[0].name);
			} else {
				TVB.widget.titleBar.setTitle("Video Player - No DVB channels found!");
			}
		</script>
	</body>
</html>
